package com.danico.danicoproject.screens;

import org.lwjgl.opengl.Display;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.danico.danicoproject.World;

public class Ingame implements Screen{
	
	private SpriteBatch batch;
	private World world;


	@Override
	public void render(float delta) {
		delta = delta*100;

		Gdx.graphics.setVSync(false);
		Display.sync(100);
		
		world.update(delta);
		
		world.render(batch, delta);		
	}

	@Override
	public void resize(int width, int height) {
		
	}

	@Override
	public void show() {
		
		batch = new SpriteBatch();
		world = new World();
		world.init();
	}

	@Override
	public void hide() {
		
	}

	@Override
	public void pause() {
		
	}

	@Override
	public void resume() {
		
	}

	@Override
	public void dispose() {
		
	}
	
}
